package com.yifei.model.entity.system;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yifei.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 部门表(SysDept)类
 *
 * @author yiFei
 * @since 2023-09-23 20:56:09
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("部门表")
@TableName("sys_dept")
public class SysDept extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 645268832971396528L;
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId
    private Long id;

    /**
     * 部门名称
     */
    @ApiModelProperty(value = "部门名称")
    private String name;

    /**
     * 父节点id
     */
    @ApiModelProperty(value = "父节点id")
    private Long parentId;

    /**
     * 父节点ID路径
     */
    @ApiModelProperty(value = "父节点ID路径")
    private String treePath;

    /**
     * 显示顺序
     */
    @ApiModelProperty(value = "显示顺序")
    private Integer sort;

    /**
     * 状态(1:正常;0:禁用)
     */
    @ApiModelProperty(value = "状态(1:正常;0:禁用)")
    private Integer status;

    /**
     * 逻辑删除标识(1:已删除;0:未删除)
     */
    @ApiModelProperty(value = "逻辑删除标识(1:已删除;0:未删除)")
    private Integer deleted;

    /**
     * 创建人ID
     */
    @ApiModelProperty(value = "创建人ID")
    private Long createBy;

    /**
     * 修改人ID
     */
    @ApiModelProperty(value = "修改人ID")
    private Long updateBy;

}
